@extends('layouts.app')
@section('content')
    <div class="content">
        <div class="row custom-invoice">
            <a class="btn btn-success" href="{{ route("admin.video.create") }}"></a>
            <br />
            <br />
            @foreach($data as $item)
                <div class="col-md-5">
                    <div class="info-box bg-aqua" style="min-width: 300px;">
                        <img class="info-box-icon" style="width: 160px;height: 90px;" src="{{ \App\Library\OSS::instance()->getUrl($item->image) }}"/>
                        <div class="info-box-content" style="margin-left: 160px;">
                            <span class="info-box-text" style="font-weight: 900">&nbsp;</span>
                            <span class="progress-description">{{ $item->title }}</span>
                        </div>
                        <div class="info-box-content" style="margin-left: 160px; min-width: 150px;">
                            <a href="{{ route('admin.video.edit', ['id' => $item->id]) }}" class="btn btn-success btn-xs"><i class="fa fa-edit">编辑</i></a>
                            <a data-href="{{ route('admin.video.delete', ['id' => $item->id]) }}" class="btn btn-danger btn-xs delete-confirm"><i class="fa fa-trash">删除</i></a>
                        </div>
                    </div>
                </div>
            @endforeach
        </div>
    </div>
@endsection
@push('stylesheets')
    <style>
        .custom-box {
            display: block;
            min-height: 40px;
            background: #ededed;
            width: 100%;
            box-shadow: 0 1px 1px rgba(0,0,0,0.1);
            border-radius: 2px;
            margin: 0 0 20px 0;
        }
        .custom-content {
            text-align: center;
            display: block;
            float: left;
            min-height: 40px;
        }

    </style>
@endpush
